SYNC RATE

This command is used to change the default refresh rate SYNC ON uses to control the speed of the SYNC update speed.

  Syntax
SYNC RATE Rate
  Parameters
Rate
Integer
This value is an integer number such as 1.

  Returns

This command does not return a value.

  Description

The default rate sustains the "Frames Per Second" at no more than 40fps. You can specify an integer value from 1 to 1000 to set a new maximum rate. A rate of zero will allow the program to refresh as fast as the system will allow. A forced sync rate cannot produce an accurate rating as in order to keep the refresh smooth, the code can only work with milliseconds which is not an accurate method of timing. The system is designed to treat smoothness more important than frame rating accuracy.

  Example Code
SYNC ON
SYNC RATE 30
DO
PRINT "keep to approximately 30 frames per second"
SYNC
LOOP
  See also

CORE Commands Menu
Index